import * as tslib_1 from "tslib";
import { Injectable } from '@angular/core';
import { CommandHandler, NgCommandHandler } from '@farris/devkit';
import { ListDataService as ListDataService1 } from '@farris/command-services';
import { BXDLBFrmControllerService as BXDLBFrmControllerService1 } from '../../services/bxdlb_frm_controller';
var rootviewmodelaudit1Handler = /** @class */ (function (_super) {
    tslib_1.__extends(rootviewmodelaudit1Handler, _super);
    function rootviewmodelaudit1Handler(_ListDataService1, _BXDLBFrmControllerService1) {
        var _this = _super.call(this) || this;
        _this._ListDataService1 = _ListDataService1;
        _this._BXDLBFrmControllerService1 = _BXDLBFrmControllerService1;
        return _this;
    }
    rootviewmodelaudit1Handler.prototype.schedule = function () {
        var _this = this;
        this.addTask('audit', function (context) {
            var args = [
                '{COMMAND~/params/id}',
                '{COMMAND~/params/flag}'
            ];
            return _this.invoke(_this._BXDLBFrmControllerService1, 'audit', args, context);
        });
        this.addTask('refresh', function (context) {
            var args = [
                '{COMMAND~/params/loadCmdName}',
                '{COMMAND~/params/loadCmdFrameId}'
            ];
            return _this.invoke(_this._ListDataService1, 'refresh', args, context);
        });
        this.addLink('audit', 'refresh', "1==1");
    };
    rootviewmodelaudit1Handler = tslib_1.__decorate([
        Injectable(),
        NgCommandHandler({
            commandName: 'rootviewmodelaudit1'
        }),
        tslib_1.__metadata("design:paramtypes", [ListDataService1,
            BXDLBFrmControllerService1])
    ], rootviewmodelaudit1Handler);
    return rootviewmodelaudit1Handler;
}(CommandHandler));
export { rootviewmodelaudit1Handler };
